package com.simblog.oaknt.service.impl;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.dubbo.config.annotation.Service;
import com.simblog.common.utils.EmailUtils;
import com.simblog.oaknt.service.IEmailService;

/**
* Created by wjj on 2016年10月13日 
 */
@Service(interfaceClass=IEmailService.class, timeout=30000)
public class EmailServiceImpl implements IEmailService {
	
	private final static Logger log= Logger.getLogger(EmailServiceImpl.class);

	@Autowired
	private EmailUtils emailUtils;
	
	@Override
	public boolean sendHtmlEmail(String title, String content, String receiveUser) {
		
		emailUtils.sendHtmlEmail(title, content, receiveUser);
		
		return true;
	}

}
